<?php
declare(strict_types=1);
/**
 * Created by project.
 * User: huanzipap
 * Date: 2023/5/11
 * Time: 15:01
 */

namespace App\Model;

use Hyperf\Database\Model\Model;
use Hyperf\Database\Model\SoftDeletes;

class ActVoteMedia extends Model
{
    use SoftDeletes;
    protected ?string $table='act_vote_media';
    public bool $timestamps = true;

    protected array $fillable = ['party_id','act_id','title','photo','video'];


//    public function setMediaListAttribute($value): void
//    {
//        $this->attributes['media_list'] = implode(',', $value);
//    }
//
//    public function getMediaListAttribute($value): array
//    {
//        return $value != null ? explode(',', $value) : [];
//    }
}